<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>新增用户</title>
<sx:head />
	</head>
	<body>
		<h1>
			新增用户
		</h1>
		<s:form action="newUser" method="post">
			<s:textfield name="user.user" label="%{getText('user.user')}"></s:textfield>
			<s:textfield name="user.password" label="%{getText('user.password')}"></s:textfield>
			<s:textfield name="user.staff_no" label="%{getText('user.staff_no')}"></s:textfield>
			<s:textfield name="user.telephone"
				label="%{getText('user.telephone')}"></s:textfield>
			<s:textfield name="user.chinese_name"
				label="%{getText('user.chinese_name')}"></s:textfield>
			<s:textfield name="user.msn" label="%{getText('user.msn')}"></s:textfield>
			<s:select name="user.sex" label="%{getText('user.sex')}"
				headerKey="-1" headerValue="请选择" list="#{'0':'男','1':'女'}"></s:select>
			<sx:datetimepicker name="user.birthday" label="%{getText('user.birthday')}"  displayFormat="yyyy-MM-dd" value="%{'today'}"></sx:datetimepicker>
			<s:textfield name="user.identity_card"
				label="%{getText('user.identity_card')}"></s:textfield>
			<sx:datetimepicker name="user.entry_date"
				label="%{getText('user.entry_date')}" displayFormat="yyyy-MM-dd" value="%{'today'}"></sx:datetimepicker>
			<s:select name="user.job" label="%{getText('user.job')}"
				list="#{'1':'CS'}"></s:select>
			<s:select name="user.status" label="%{getText('user.status')}"
				list="#{'0':'冻结','1':'有效'}"></s:select>
			<s:textarea name="user.comments" label="%{getText('user.comments')}"
				cols="20" rows="5"></s:textarea>
			<s:submit value="注册" align="center"></s:submit>
		</s:form>
	</body>
</html>
